<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:p="http://primefaces.org/ui" xmlns:a="http://java.sun.com/jsf/html" xmlns:h="http://xmlns.jcp.org/jsf/html">    
  <h:head>
    <link rel="icon" href="images/favicon2.ico"/>
   <title>Signin</title>   
    <style type="text/css" media="screen">
   
        @import url('jumbotron-narrow.css');
        @import url('bootstrap.min.css');
        @import url('style.css');

    </style> 
  </h:head>
    

  <h:body>
       
     
  </h:body>
    <div class="container">
            
            <div class="header">
                <nav> 
                    <ul class="nav nav-pills pull-right">
                        <h:form>
                            <li role="presentation">
                            <a:commandButton class="btn btn-lg btn-primary btn-block" action="#{loginBean.logout()}" value="Logout"/></li>
                        </h:form>
                    </ul>
                </nav>
                <h3 class="text-muted">MeteoCal</h3>
            </div>
            <h2 class="form-signin-heading">Ciao, #{userBean.name}!</h2> <br></br>
            
            <div class="jumbotron">    
                
                
            <h2 class="form-signin-heading">This is the event</h2> <br></br>
            
                       
            <p:panel id="basic" header="Event" footer="Creator: #{searchEventBean.creatore()}">
                    <h:panelGrid columns="2" cellpadding="10">
                        <img src="images/evento.jpg"/>
                        <h:outputText value="Name: #{searchEventBean.name()}"/><br></br><br></br>
                        <h:outputText value="Place: #{searchEventBean.place()}"/><br></br><br></br>
                        <h:outputText value="Description: #{searchEventBean.description()}"/><br></br><br></br>
                        <h:outputText value="Start Date: #{searchEventBean.startDate()}"/><br></br><br></br>
                        <h:outputText value="End Date: #{searchEventBean.endDate()}"/><br></br><br></br>  
                        <h:outputText value="Participants: #{participantBean.partecipanti(searchEventBean.id())}"/>

                        
                    </h:panelGrid>
                </p:panel>
            
                <br></br><br></br>
                <a class="btn btn-primary btn-lg" href="ScheduleView.xhtml" role="button">&laquo; Back to your Calendar</a><br></br><br></br>
               <h:form> 
                    <a:commandButton class="btn btn-primary btn-lg" id="submit1" value="Delete Event" action="#{searchEventBean.delete(searchEventBean.id())}" />           
                </h:form>

            </div>
            <footer class="footer">
                <p> Alessio Monesi - Roberto Mussini</p>
            </footer>
        </div>
</html>

      

